<%--
  Created by IntelliJ IDEA.
  User: zjk
  Date: 2018-08-04
  Time: 14:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>计划明细</title>
    <link rel="shortcut icon" href="easyui/css/images/favicon.ico" />
    <link rel="stylesheet" href="css/flipclock.css">
    <link href="css/CalcSS3.css" rel="stylesheet" type="text/css" />
    <link href="css/index.css" rel="stylesheet" type="text/css" />
    <link href="easyui/css/easyui.css" rel="stylesheet" type="text/css">
    <link href="easyui/css/easyui_animation.css" rel="stylesheet" type="text/css">
    <link href="easyui/css/easyui_plus.css" rel="stylesheet" type="text/css">
    <link href="easyui/css/insdep_theme_default.css" rel="stylesheet" type="text/css">
    <link href="easyui/css/icon.css" rel="stylesheet" type="text/css">
    <link href="easyui/css/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- 引入 ECharts 文件 -->
    <script src="js/echarts.js"></script>
    <!--放入自定义的图表-->
    <script src="js/monitor.js"></script>
    <script type="text/javascript" src="easyui/js/jquery.min.js"></script>
    <script type="text/javascript" src="easyui/js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="easyui/js/jquery.insdep-extend.min.js"></script>
</head>
<body>

<form id="chun-edit-planDetails-f" action="add-planDetails" method="post">
    <table class="utils-table" border="0" style="background-color: #EBEFF2;">

        <tr>
            <td>产品名称：</td>
            <td  class="content-td" style="text-align: left;" ><input id="chun-edit-pname"  class="easyui-textbox" data-options="editable:false,panelHeight:'auto',disabled:true"/></td>
            <td>产品编号：</td>
            <td  class="content-td" style="text-align: left;" ><input id="chun-edit-pid" name="salePlanId" class="easyui-textbox" data-options="editable:false,disabled:true"/></td>
        </tr>
        <tr>
            <td>单位：</td>
            <td  class="content-td" style="text-align: left;" ><input id="chun-edit-pwunit"   class="easyui-textbox" data-options="editable:false,disabled:true"/></td>
            <td>售价：</td>
            <td  class="content-td" style="text-align: left;" ><input id="chun-edit-poprice"  class="easyui-textbox" data-options="required:true" validType="checkDotNumber"/></td>
        </tr>
        <tr>
            <td>目标销量：</td>
            <td class="content-td" style="text-align: left;" ><input id="chun-edit-expectGain" name="expectGain" class="easyui-textbox" data-options="required:true" validType="checkNumber"/></td>
            <td>目标销售额：</td>
            <td class="content-td" style="text-align: left;" ><input id="chun-edit-planMoney" name="planMoney" class="easyui-textbox" data-options="editable:false"/></td>
            <td>计划时间：</td>
            <td class="content-td" style="text-align: left;" ><input id="chun-edit-planTime" name="planTime" class="easyui-datebox" data-options=""/></td>
        </tr>
        <tr>
            <td>客户：</td>
            <td  class="content-td" style="text-align: left;" ><input id="chun-edit-clientId" name="clientId"  class="easyui-textbox" data-options="editable:false,panelHeight:'auto',disabled:true"/></td>
            <td>销售代表：</td>
            <td  class="content-td" style="text-align: left;" ><input id="chun-edit-userId123" name="userId" class="easyui-textbox" data-options="editable:false,panelHeight:'auto',disabled:true"/></td>
            <input id="chun-edit-saleDetId" name="saleDetId" type="hidden" value="aa">
        </tr>
        <tr>

        </tr>

    </table>

</form>
<script type="text/javascript">
    $.extend($.fn.validatebox.defaults.rules, {
        checkDotNumber: {
            validator: function (value) {
                var pattern = /^\d+([.]\d+)*$/
                return pattern.test(value);
            },
            message: '必须为数字或小数'
        }
    });
    $.extend($.fn.validatebox.defaults.rules, {
        checkNumber: {
            validator: function (value) {
                var patrn = /^\d+$/;
                return patrn.test(value);
            },
            message: '必须为数字'
        }
    });



</script>

</body>
</html>
